@extends('webadmin.index')

@section('title','网站配置')

@section('content')
<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span><i class="icon-ok"></i>网站配置</span>
                    </div>
                    <div class="mws-panel-body no-padding">

                    	<form id="mws-validate" class="mws-form" action="/admin/config/update" method="post" enctype="multipart/form-data" novalidate="novalidate">
                        	<div id="mws-validate-error" class="mws-form-message error" style="display:none;"></div>
                        	<div class="mws-form-inline">
                            	<div class="mws-form-row">
                                	<label class="mws-form-label">网站标题</label>
                                	<div class="mws-form-item">
                                    	<input type="text" name="title" value="{{$res->title}}" class="required large">
                                    </div>
                                </div>
                            	
                            	<div class="mws-form-row">
                                        <label class="mws-form-label">网站开关</label>
                                        <div class="mws-form-item">
                                             <input name="button" type="radio" @if($res->status == 0) checked @endif value="0">on
                                             <input name="button" type="radio" @if($res->status == 1) checked @endif value="1">off
                                        </div>
                                </div>
                            	<div class="mws-form-row">
                                	<label class="mws-form-label">网站关键字</label>
                                	<div class="mws-form-item">
                                    	<input type="text" name="keywords" value="{{$res->keywords}}" >
                                    </div>
                                </div>
                            	
                            	<div class="mws-form-row">
                                	<label class="mws-form-label">网站LOGO</label>
                                	<div class="mws-form-item">
                                    	<div class="fileinput-holder" style="position: relative;">
                                    	<input type="file"  name="logo"  style="width: 100%; padding-right: 85px;" placeholder="上传LOGO" >
                                    	<img src="{{$res->logo}}" style="width: 80px;height: 80px;">
                                    	</div>
                                        <label for="picture" class="error" generated="true" style="display:none"></label>
                                    </div>
                                </div>
                                {{csrf_field()}}
                            </div>
                            <div class="mws-button-row">
                            	<input type="submit" class="btn btn-danger">
                            </div>
                        </form>

                    </div>    	
                </div>
@endsection
@section('css')
    <link rel="stylesheet" type="text/css" href="/webadmin/plugins/colorpicker/colorpicker.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/webadmin/custom-plugins/picklist/picklist.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/webadmin/plugins/select2/select2.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/webadmin/plugins/ibutton/jquery.ibutton.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/webadmin/plugins/cleditor/jquery.cleditor.css" media="screen">

    <!-- Required Stylesheets -->
    <link rel="stylesheet" type="text/css" href="/webadmin/bootstrap/css/bootstrap.min.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/webadmin/css/fonts/ptsans/stylesheet.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/webadmin/css/fonts/icomoon/style.css" media="screen">

    <link rel="stylesheet" type="text/css" href="/webadmin/css/mws-style.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/webadmin/css/icons/icol16.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/webadmin/css/icons/icol32.css" media="screen">

    <!-- Demo Stylesheet -->
    <link rel="stylesheet" type="text/css" href="/webadmin/css/demo.css" media="screen">

    <!-- jQuery-UI Stylesheet -->
    <link rel="stylesheet" type="text/css" href="/webadmin/jui/css/jquery.ui.all.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/webadmin/jui/jquery-ui.custom.css" media="screen">

    <!-- Theme Stylesheet -->
    <link rel="stylesheet" type="text/css" href="/webadmin/css/mws-theme.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/webadmin/css/themer.css" media="screen">

@endsection

@section('js')
   <script src="/webadmin/js/libs/jquery-1.8.3.min.js"></script>
    <script src="/webadmin/js/libs/jquery.mousewheel.min.js"></script>
    <script src="/webadmin/js/libs/jquery.placeholder.min.js"></script>
    <script src="/webadmin/custom-plugins/fileinput.js"></script>
    
    <!-- jQuery-UI Dependent Scripts -->
    <script src="/webadmin/jui/js/jquery-ui-1.9.2.min.js"></script>
    <script src="/webadmin/jui/jquery-ui.custom.min.js"></script>
    <script src="/webadmin/jui/js/jquery.ui.touch-punch.js"></script>

    <script src="/webadmin/jui/js/globalize/globalize.js"></script>
    <script src="/webadmin/jui/js/globalize/cultures/globalize.culture.en-US.js"></script>

    <!-- Plugin Scripts -->
    <script src="/webadmin/custom-plugins/picklist/picklist.min.js"></script>
    <script src="/webadmin/plugins/autosize/jquery.autosize.min.js"></script>
    <script src="/webadmin/plugins/select2/select2.min.js"></script>
    <script src="/webadmin/plugins/colorpicker/colorpicker-min.js"></script>
    <script src="/webadmin/plugins/validate/jquery.validate-min.js"></script>
    <script src="/webadmin/plugins/ibutton/jquery.ibutton.min.js"></script>
    <script src="/webadmin/plugins/cleditor/jquery.cleditor.min.js"></script>
    <script src="/webadmin/plugins/cleditor/jquery.cleditor.table.min.js"></script>
    <script src="/webadmin/plugins/cleditor/jquery.cleditor.xhtml.min.js"></script>
    <script src="/webadmin/plugins/cleditor/jquery.cleditor.icon.min.js"></script>

    <!-- Core Script -->
    <script src="/webadmin/bootstrap/js/bootstrap.min.js"></script>
    <script src="/webadmin/js/core/mws.js"></script>

    <!-- Themer Script (Remove if not needed) -->
    <script src="/webadmin/js/core/themer.js"></script>

    <!-- Demo Scripts (remove if not needed) -->
    <script src="/webadmin/js/demo/demo.formelements.js"></script>
@endsection
